SINT Service Monitor — Deployment
=================================

This folder is self-contained: the .NET 8 runtime is bundled, so target machines
do NOT need any .NET runtime installed. Copy the WHOLE folder to each machine
(e.g. C:\Program Files\SINT\ServiceMonitor). Keep the UI and the Service together
in the same folder — the UI installs the service from its own directory.

BEFORE ROLLOUT (optional but recommended)
------------------------------------------
Edit smtp-defaults.json with your mail relay details. On first run these are
imported automatically so techs don't have to type SMTP settings on every machine.
Security options: None | StartTls | SslOnConnect. Delete smtp-defaults.json after
deployment if you don't want the plain-text template left on the machine.

INSTALL (run as Administrator)
------------------------------
Option A — GUI:
  1. Right-click ServiceMonitor.UI.exe -> Run as administrator.
  2. Tick the services to monitor, click "Save Monitoring Selection".
  3. Click "Email Settings..." to review SMTP and "Send Test Email".
  4. Click "Install" (installs + starts the monitor service).

Option B — script:
  Right-click Install-Service.bat -> Run as administrator.
  Then run ServiceMonitor.UI.exe (as admin) to choose services and SMTP settings.

UNINSTALL (run as Administrator)
--------------------------------
Right-click Uninstall-Service.bat -> Run as administrator.

WHERE THINGS LIVE
-----------------
Config & state:  C:\ProgramData\SINT\ServiceMonitor\config.json / state.json
Logs:            C:\ProgramData\SINT\ServiceMonitor\logs\   (also Windows Event Log,
                 Application source "SINT Service Monitor")

BEHAVIOUR
---------
- Monitored service crashes  -> restarted once + "no action required" email.
- Same service crashes again within 60 minutes -> NOT restarted + "please
  investigate" email; left stopped until someone starts it again.
- Service stopped manually/cleanly -> left alone (no restart, no email).
